package com.clkj.zhonghui.pojo.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @author jiarun
 * @date Mon Jul 15 10:39:58 CST 2024
 */
@ApiModel( value ="商品问答" )
@Table( name ="t_zh_productAnswer" )
public class ProductAnswer  implements Serializable {

    @Id
   	@Column(name = "answer_id", updatable = false)
	@ApiModelProperty( value="null")
	private Integer answerId;

	/**
	 * 用户ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="用户ID")
	private Integer userId;

	/**
	 * 商品ID
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="商品ID")
	private Integer productId;

	/**
	 * 0为提问 否则为回答的题目ID
	 */
   	@Column(name = "parent_id" )
	@ApiModelProperty( value="0为提问 否则为回答的题目ID")
	private Integer parentId;

	/**
	 * 提问或回答内容
	 */
   	@Column(name = "answer_content" )
	@ApiModelProperty( value="提问或回答内容")
	private String answerContent;

	/**
	 * 时间
	 */
   	@Column(name = "answer_date" )
	@ApiModelProperty( value="时间")
	private String answerDate;

	/**
	 * 回答的条数
	 */
   	@Column(name = "answer_num" )
	@ApiModelProperty( value="回答的条数")
	private Integer answerNum;

	/**
	 * 审核状态 0未审核 1已审核
	 */
   	@Column(name = "answer_status" )
	@ApiModelProperty( value="审核状态 0未审核 1已审核")
	private Integer answerStatus;


    @Transient
    private String replyname;

    @Transient
    private Integer replyCount;


    @Transient
    private List<ProductAnswer> replyList;

    @Transient
    private String userName;


    @Transient
    private String userImg;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }


    public List<ProductAnswer> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<ProductAnswer> replyList) {
        this.replyList = replyList;
    }

    public String getReplyname() {
        return replyname;
    }

    public void setReplyname(String replyname) {
        this.replyname = replyname;
    }


    public Integer getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

  public Integer getAnswerId() {
    return answerId;
  }

  public void setAnswerId(Integer answerId) {
    this.answerId = answerId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }


  public String getAnswerContent() {
    return answerContent;
  }

  public void setAnswerContent(String answerContent) {
    this.answerContent = answerContent;
  }


  public String getAnswerDate() {
    return answerDate;
  }

  public void setAnswerDate(String answerDate) {
    this.answerDate = answerDate;
  }


  public Integer getAnswerNum() {
    return answerNum;
  }

  public void setAnswerNum(Integer answerNum) {
    this.answerNum = answerNum;
  }


  public Integer getAnswerStatus() {
    return answerStatus;
  }

  public void setAnswerStatus(Integer answerStatus) {
    this.answerStatus = answerStatus;
  }

}
